<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="renderer" content="webkit|ie-comp|ie-stand">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport"
    content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <title>返还给车间</title>
</head>

<body>
  <div id="app">
    <div class="returnToWorkShop-mgr">
      <el-tabs v-model="activeMenu" class="finishMaterial full-tabs">
        <el-tab-pane v-for="menu in menus" :key="menu.name" :label="menu.label" :name="menu.name">
          <component v-if="activeMenu===menu.name" :is="menu.url" class="menu-item">
          </component>
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</body>

<script src="../../myJs/importFile.js"></script>
<script>
  importFile([
    "/vueSystem/components/css/sysCommonSearch.css",
    "/vueSystem/components/css/searchBtnView.css",
    "/vueSystem/components/css/promptForm.css"
  ], [
    "/vueSystem/i18n/index.js",
    "/vueSystem/js/dropdownUtil.js",
    "/vueSystem/components/sysCommonSearch.js",
    "/vueSystem/components/searchBtnView.js",
    "/vueSystem/components/promptForm.js",
    "/vueSystem/mixins/tablePaginationMixin.js"
  ]);
</script>
<script src="../utils/moduleUtil.js"></script>
<script src="./createOrder.js"></script>
<script src="./approvalOrder.js"></script>

<script>
  var app = new Vue({
    el: "#app",
    data: function () {
      return {
        activeMenu: 'createOrder',
        menus: [{
          label: "生成返料单",
          name: "createOrder",
          url: "create-order"
        }, {
          label: "审核返料单",
          name: "approvalOrder",
          url: "approval-order"
        }]
      };
    },
    components: {
      CreateOrder: CreateOrder,
      ApprovalOrder: ApprovalOrder
    }
  });
</script>

<style>
  .returnToWorkShop-mgr {
    padding-left: 20px;
    height: 100%;
  }

  .returnToWorkShop-mgr .return-order {
    padding: 10px 20px 5px;
    height: calc(100% - 15px);
    padding-left: 0;
    overflow: auto;
    display: flex;
    flex-direction: column;
  }

  .returnToWorkShop-mgr .return-order .order-table-div {
    flex: 1;
    overflow: auto;
  }

  .returnToWorkShop-mgr .return-order .order-table-div .table-count {
    display: flex;
  }

  .approval-order .order-table-div .el-button+.el-button{
    margin-left: 0;
  }
</style>

</html>